<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
function ouputcsv()
{
	$("#if_csv").val(1);
	$("#search").submit();
}


</script>
<title>历史记录列表</title>
<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent">
<div class="pageheader notab">
  <h1 class="pagetitle">商品历史记录列表</h1>
  <span class="pagedesc"></span>
  <div class="menulist">
   
  </div>
  
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
<div id="basicform" class="subcontent">
   <!--搜索栏-->
          <div>
          
   	
         <div style="clear: both"></div>
         <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
   </div>
      
    <form class="stdform stdform2" method="get" id="search" action="/order/ajaxbutton">
     <input type='hidden' name='op' id='op' value="showhistoryOrder">
     <input type='hidden' name='goods_id' id='goods_id' value="{{$goods_id}}">

      <div class="tableoptions"> 
        
      
         
               
       订单时间
    
       <input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
       订单号: <input type="text" name="other" id="other" class="width200" value="{{$other}}" placeholder="订单编号" />
     
       <select name="status" id="status">
              <option value="">-状态-</option>
             <option value="1" {{if $status=='1'}} selected{{/if}}>新订单</option>
             <option value="2" {{if $status=='2'}} selected{{/if}}>已支付</option>
             <option value="3" {{if $status=='3'}} selected{{/if}}>配货中</option>
             <option value="4" {{if $status=='4'}} selected{{/if}}>已发货</option>
             <option value="5" {{if $status=='5'}} selected{{/if}}>已完成</option>
             <option value="6" {{if $status=='6'}} selected{{/if}}>作废</option>
             <option value="7" {{if $status=='7'}} selected{{/if}}>待审查</option>
		  </select>                    
&nbsp;
        <button class="btn btn-primary" id="searchbtn">Search</button>
        &nbsp;
     
      </div>
      
    
    </form>
    <!--搜索栏结束-->
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
<thead>
   <tr class="lbbt">
       <td bgcolor="#FEFFF1" width="80%">日志</td>
    <td  bgcolor="#FEFFF1" width="10%">更新时间</td>
    <td  bgcolor="#FEFFF1"  width="10%">操作者</td>
 

  </tr>
</thead>
<tbody >

{{foreach from=$orderlist item=li key=key}}
<tr>
  <td valign="middle" width="80%" >{{$li.content}}</td>
  <td>{{$li.updatetime}}</td>
  <td valign="middle" >{{$li.createUser}}</td>
  
 
</tr>
{{/foreach}}
</tbody>

</table>
  <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
</div>
</div>

  
  <!-- 模态框（Modal）显示马帮订单号 -->
  <form  method="post">
  <div class="modal fade" id="showmabangorder" tabindex="-1" role="dialog" aria-labelledby="sshowmabangorder" aria-hidden="true">
    <div class="modal-dialog" style="width:740px;">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" 
               aria-hidden="true">× </button>
          <h4 class="modal-title" id="sshowmabangorder"> 输入订单编号  </h4>
        </div>
        <div class="modal-body">
         <table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
          <tr class="lbbt"><td width="20%" bgcolor="#FEFFF1">商品编号</td><td bgcolor="#FEFFF1" width="40%">商品名称</td><td bgcolor="#FEFFF1">数量</td><td bgcolor="#FEFFF1">价格</td><td bgcolor="#FEFFF1">运费</td><td bgcolor="#FEFFF1">总价</td></tr>
          <tbody id="showmabangid"></tbody>
          </table>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal"> 关闭 </button>
          </div>
        </div>
        <!-- /.modal-content --> 
      </div>
      <!-- /.modal-dialog --> 
    </div>
  </div>
  <!-- /.modal -->
  </form>
</body>
</html>